/**
 * @Date: 2022-04-17 17:26:56
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-04-19 21:05:55
 * @FilePath: \weibo-api\model\AtRelation.js
 * @Description: at提到我的数据表模型
 */
const sequelize = require("../db/seq");
const { DataTypes } = require("sequelize");
//创建模型 表名字为'blog'
const AtRelation = sequelize.define("atRelation", {
  userId: {
    type: DataTypes.INTEGER,
    allowNull: false,
  },

  ReplyId: {
    type: DataTypes.INTEGER,
  },
  commentId: {
    type: DataTypes.INTEGER,
  },
  isRead: {
    type: DataTypes.BOOLEAN,
    allowNull: false,
    defaultValue: false,
    comment: "是否已读",
  },
});

module.exports = AtRelation;
